import hashlib

from django.contrib.auth.models import AbstractUser
from ops.utils.models import table_prefix
from dvadmin.utils.models import CoreModel
from django.db import models


class ChatBot(CoreModel):
    text = models.CharField(max_length=2000, blank=True, null=True, verbose_name="内容", help_text="内容")
    senderId = models.CharField(max_length=2000, blank=True, null=True, verbose_name="发送者id", help_text="发送者id")
    senderNick = models.CharField(max_length=100, blank=True, null=True, verbose_name="发送者昵称", help_text="发送者昵称")

    class Meta:
        db_table = table_prefix + 'chatbot_log'
        verbose_name = "chatbot日志"
        verbose_name_plural = verbose_name
        ordering = ('create_datetime',)
